### This file shows usage of constructor


class Calc:
    numberA = 0
    numberB = 0


    def __init__(self, numberA, numberB = 1):
        self.numberA = numberA
        self.numberB = numberB

    def sum(self):
        return self.numberA+ self.numberB

    def mul(self):
        return self.numberA*self.numberB

    def div(self):
        return self.numberA / self.numberB

    def mod(self):
        return self.numberA % self.numberB

calc = Calc(2)
print(calc.sum())
print(calc.mul())
print(calc.div())
print(calc.mod())
print( 'dir = ' + ",".join(dir(calc)))
print( 'class = ' + str(calc.__class__))
print(calc.__class__.__name__)

